# -*- coding: utf-8 -*-
# @Time    : 2022/5/26 15:11
# @Author  : zyw
# @Email   : panda_kings@163.com
# @File    : course.py
from flask_restful import fields

tag_fields = {
    'id':fields.Integer,
    'tag_name':fields.String,
    'sequence': fields.Integer
}


course_fields = {
    'id':fields.Integer,
    'course_name': fields.String,
    'course_img': fields.String,
    'courseandtag': fields.String,
    'course_status': fields.Integer,
    'learner': fields.Integer,
    'attention': fields.Integer,
    'course_type':fields.String,
    "course_time" : fields.DateTime,
}

chapter_fields = {
    'id': fields.Integer,
    'title': fields.String,
    'serial_num': fields.Integer,
    'course': fields.Integer,
    # 'sections':fields.Integer,

}

sections_fields = {
    'id':fields.Integer,
    'section_title': fields.String,
    'serial_num': fields.Integer,
    'learn_time': fields.Float,
    'video_url': fields.String,
    'seq_num':fields.Integer,
    'chapters': fields.Integer
}

comment_fields = {
    "id": fields.Integer,
    'comment_content':fields.String,
    'comment_time': fields.DateTime,
    'zan_num':fields.Integer,
    'reply_count': fields.Integer,
    'user':fields.Integer,
    'parent_id': fields.Integer,
    'course': fields.Integer
}
